package com.gw.yunke.constant;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
//@ConfigurationProperties(prefix = "yunke")
public class GlobalConstant {

  @Value("${yunke.domain}")
  public String domain;

  @Value("${yunke.domainWithoutPort}")
  public String domainWithoutPort;
  @Value("${yunke.defaultCourseImageId}")
  public Long defaultCourseImageId;

  public Long getDefaultCourseImageId() {
    return defaultCourseImageId;
  }

  public void setDefaultCourseImageId(Long defaultCourseImageId) {
    this.defaultCourseImageId = defaultCourseImageId;
  }

  public String getDomainWithoutPort() {
    return domainWithoutPort;
  }

  public void setDomainWithoutPort(String domainWithoutPort) {
    this.domainWithoutPort = domainWithoutPort;
  }

  public String getDomain() {
    return domain;
  }

  public void setDomain(String domain) {
    domain = domain;
  }


}
